<ul>
	<li><?php
		echo $this->Html->link('/', array(
			'path' => false,
			'?'  => array_diff_key($this->params['url'], array('ext' => 1, 'url' => 1))
		));
	?></li>
<?php
	foreach ($folders as $folder) {
		echo '<li style="padding-left: ' . ($folder['depth'] + 1) * 15 . 'px">';
		echo $this->Html->link($folder['name'], array(
			'path' => (!empty($folder['path'])) ? base64_encode($folder['path']) : null,
			'?'  => array_diff_key($this->params['url'], array('ext' => 1, 'url' => 1))
		));
		echo '</li>';
	}
?>
</ul>